/* 
 * File:   Wind.h
 * Author: RedEyedKiller
 *
 * Created on 2 Μάρτιος 2011, 5:25 πμ
 */

#ifndef WIND_H
#define	WIND_H

#include "Force.h"
#include "../Vector2.h"

namespace physicsSystem
{
namespace forces
{

class Wind : public TimedForce
{
public:

    Wind(float minIntensity, float maxIntesity, int minRad, int maxRad, int radStep = 1);
    virtual void Prepare(float seconds);
    virtual void Affect(PhysicalObject* object);
private:
    void CalculateForce();
    Math::Vector2F force;
    float minIntensity;
    float maxIntesity;
    int minRad;
    int maxRad;
    int radStep;
    int angle;
    bool direction;
};

}
}
#endif	/* WIND_H */

